package com.example.demo;

import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.example.demo.databinding.ActivityMainBinding;
import com.example.lib_common.PageJumpUtils;

import java.util.List;

/**
 * author : 浪
 * date :2024/11/28 15:44
 * desc:
 */
public class MainActivity extends AppCompatActivity {

    private ActivityMainBinding binding;


    private String logTag = "MainActivity";


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        binding = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());



        binding.dingwei.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                PageJumpUtils.toLocationActivity();
            }
        });

//
//        try {
//            mLocationClient = new LocationClient(this);
//        } catch (Exception e) {
//            throw new RuntimeException(e);
//        }
//        //声明LocationClient类
//        mLocationClient.registerLocationListener(myListener);
//        //注册监听函数

    }
//    public LocationClient mLocationClient = null;
//    private MyLocationListener myListener = new MyLocationListener();
//
//
//
//    public class MyLocationListener extends BDAbstractLocationListener {
//        @Override
//        public void onReceiveLocation(BDLocation location) {
//
//            if (location == null ) {
//                return;
//            }
//            Log.i("MyLocationListener ",location.getAddrStr());
//
////            if (!TextUtils.isEmpty(location.getCity())) {
////                mCity = location.getCity();
////            }
////            mAddress = location.getAddrStr();
////            mLatitude = location.getLatitude();
////            mLongitude = location.getLongitude();
////            if (!TextUtils.isEmpty(location.getStreet())) {
////                mLocationListAdapter.clear();
////                initSearch(location.getStreet(), 0);
////            }
////            showMap(mLatitude, mLongitude);
//        }
//    }


}